package com.complex.spring.mvc.servlet;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * 监听HttpSessionEvent事件,HttpSessionEvent事件的来源HttpSession
 * @author gao
 *
 */
public class HttpSessionListenerImpl implements HttpSessionListener{

	public void sessionCreated(HttpSessionEvent se) {
		StaticMap.setProperty("sessionCreated", "sessionDestroyed id:"+se.getSession().getId());
	}

	public void sessionDestroyed(HttpSessionEvent se) {
		StaticMap.setProperty("sessionDestroyed", "sessionDestroyed id:"+se.getSession().getId());
	}

}
